<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Myaccount.aspx.cs" Inherits="Myaccount" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table cellpadding="2" id="table">
        <tr>
            <td>UserID:</td>
            <td style="width: 3px">
                <asp:TextBox ID="txtUserID" runat="server"></asp:TextBox></td>
            <td>
                <asp:RequiredFieldValidator ID="rpfUserID" runat="server" ControlToValidate="txtUserID"
                    ErrorMessage="(Please enter userID.)"></asp:RequiredFieldValidator></td>                               
        </tr>
        <tr>
            <td>Password:</td>
            <td>
                <asp:TextBox ID="txtPass" runat="server" TextMode="Password"></asp:TextBox></td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtPass"
                    ErrorMessage="(Please enter password)"></asp:RequiredFieldValidator></td>
             </tr>
        <tr>
            <td>Confirm:</td>
            <td>
                <asp:TextBox ID="txtConfirm" runat="server" TextMode="Password"></asp:TextBox></td>
            <td>
                <asp:CompareValidator ID="cvConfirm" runat="server" ControlToCompare="txtPass" ControlToValidate="txtConfirm"
                    ErrorMessage="(Not match password)"></asp:CompareValidator></td>    
        </tr>
        <tr>
            <td>FirstName:</td>
            <td>
                <asp:TextBox ID="txtFN" runat="server"></asp:TextBox></td>
            <td>
                <asp:RequiredFieldValidator ID="rpfFN" runat="server" ControlToValidate="txtFN" 
                    ErrorMessage="(Please enter firstname)"></asp:RequiredFieldValidator></td>
            
        </tr>
        <tr>
            <td>LastName:</td>
            <td>
                <asp:TextBox ID="txtLN" runat="server"></asp:TextBox></td>
            <td>
                <asp:RequiredFieldValidator ID="rpfLN" runat="server" ControlToValidate="txtLN" 
                    ErrorMessage="(Please enter Lastname)"></asp:RequiredFieldValidator></td>        
            
        </tr> 
        <tr>
        <td>
            <asp:Label ID="lblPhone" runat="server" Text="Phone"></asp:Label>
        </td>
        <td>
            <asp:TextBox ID="txtPhone" runat="server"></asp:TextBox>
        </td>
        </tr>  
         <tr>
            <td>Address:</td>
            <td>
                <asp:TextBox ID="txtAddress" runat="server"></asp:TextBox></td>
            <td style="height: 26px">
                <asp:RequiredFieldValidator ID="rpfAddress" runat="server" ControlToValidate="txtAddress"
                    ErrorMessage="(Please enter address)"></asp:RequiredFieldValidator></td>
        </tr>
        <tr>
        <td>Email:</td>
            <td >
                <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox></td>
            <td>
                <asp:RegularExpressionValidator ID="rgeEmail" runat="server" ControlToValidate="txtEmail"
                    ErrorMessage="(Please enter right for email)" 
                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator></td>
       
        </tr>  
        <tr>
        <td>CardType:</td>
            <td>
                <asp:TextBox ID="txtCardType" runat="server"></asp:TextBox></td>
        </tr> 
        <tr>
        <td>CardCode:</td>
            <td >
                <asp:TextBox ID="txtCardCode" runat="server"></asp:TextBox>
            </td>           
        </tr>
       
        <tr>
            <td colspan ="2">
                <asp:Button ID="btnEdit" runat="server" Text="Edit" OnClick="btnEdit_Click" />            
                <asp:Button ID="btnReset" runat="server" Text="Reset" 
                    onclick="btnReset_Click" />
            </td>
        </tr>
       
    </table>
</asp:Content>

